<!DOCTYPE html>
<html>
    <head>
        <meta name="charset=UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
        <link rel="stylesheet" href="{{ url_for('static', filename='Home.CSS') }}">
        <title>QuestionBank</title>
    </head>

    <body>

        <header>
            <nav>
                <ul>
<!--
                    <li><a href="index.html">首页</a></li>
                    <li><a href="QuestionBank.html">题库</a></li>
                    <li><a href="Competition.html">比赛</a></li>
                    <li><a href="Release.html">我要发布</a></li>
                    <div>
                        <li><a href="login.html">登录/注册</a></li>
-->
                    <li><a href="{{ url_for('homepage') }}">首页</a></li>
                    <li><a href="{{ url_for('questions') }}">题库</a></li>
                    <li><a href="{{ url_for('competition') }}">比赛</a></li>
                    <li><a href="{{ url_for('release') }}">我要发布</a></li>
                    <div>
                        <li><a href="{{ url_for('login') }}">登录/注册</a></li>
<!--python-->
                    </div>
                </ul>
                <div class="spe">
                    <ul>
                        <li><img src="{{ url_for('static', filename='./img/mark.png') }}" width="80px" height=80px" alt="logo"></li>
                        <li><h1>题库</h1></li>
                    </ul>
                </div>
            </nav>
        </header>
   
<!--XianFen-->
    <section class="QuestionBank">
        <div>
            <table border="1px" style="width: 100%">
                <tr>
                    <th width=10%>序号</th>
                    <th>题目</th>
                    <th>提交数</th>
                    <th>正确数</th>
                    <th>分类</th>
                </tr>
                {% for q in questions %}
                <tr>
                    <td>{{ loop.index }}</td>
                    <td><a href="{{ url_for('writeQuestion', Qname=q[0]) }}">{{ q[0] }}</a></td>
                    <td>{{ q[1] }}</td>
                    <td>{{ q[2] }}</td>
                    <td>{{ q[3] }}</td>
                </tr>
                {% endfor %}
            </table>
        </div>
<!--

    <section>
        <ul>
        {% for q in questions %}
            <li style="color: black"><a href="{{ url_for('writeQuestion', Qname=q[0]) }}"><p>题目名称： {{ q[0] }}</p><p>"题目点击量： {{ q[1] }}</p><p>此题被答对的次数：{{ q[2] }}</p><p>题目类型：{{ q[3] }}</p></a></li>
        {% endfor %}
        </ul>
-->
    </section>

    <footer>
        Welcome to contact us with <a href="https://github.com/VisualGMQ" target="view-window">https://github.com/VisualGMQ</a>
    </footer>

    </body>
</html>